package com.zyh.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhang
 * @since 2022-04-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_auction")
public class Auction implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "auctionId", type = IdType.AUTO)
    private Integer auctionId;

    @TableField("auctionName")
    private String auctionName;

    @TableField("auctionStartPrice")
    private Double auctionStartPrice;

    @TableField("auctionUpset")
    private Double auctionUpset;

    @TableField("auctionStartTime")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private LocalDate auctionStartTime;

    @TableField("auctionEndTime")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private LocalDate auctionEndTime;

    @TableField("auctionPic")
    private String auctionPic;

    @TableField("auctionDesc")
    private String auctionDesc;


}
